package org.chengyi.model_shop.service;

import org.chengyi.model_shop.entity.Category;
import org.chengyi.model_shop.entity.CategoryDetail;

import java.util.List;

public interface CategoryService {
    /**
     * 获取所有分类
     * @return
     */
    List<CategoryDetail> getCategoryList();
    /**
     * 添加分类
     * @param category
     * @return
     */
    String addCategory(Category category);
    /**
     * 删除分类
     * @param categoryId
     * @return
     */
    String deleteCategory(Integer categoryId);
    /**
     * 修改分类
     * @param category
     * @return
     */
    String updateCategory(Category category);
}
